package com.banmoon.adapter.classmode;

import cn.hutool.core.util.StrUtil;

public class Electricity220VTo5VAdapter extends Electricity220V implements ElectricityAdapter{

    @Override
    public int transform() {
        int voltage = super.output();
        int newVoltage = voltage - 215;
        System.out.println(StrUtil.format("成功：已将{}V转化为{}V", voltage, newVoltage));
        System.out.println(StrUtil.format("输出电压：{}V", newVoltage));
        return newVoltage;
    }

}
